<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title><style>
        .box{
            width: 90%;
            border: 2px solid green;
            margin: auto;
            padding:10px;
            border-radius:0 20px 0 20px ;
            color: gray;
        }
        span{
           margin-right: 100px;
        }
    </style>
    
</head>
<body>
        //<div class="box">
           // <p>品牌：小米(MI)</p>
            // <div class="box2">
              //  <span>商品名称:小米10青春版</span>
              //  <span>品牌编号:1002338243</span>
              //  <span>商品毛重:0.55kg</span>
               // <span>商品产地:中国大陆</span>
        //</div>
       // </div>
        <script>
              let goods={
            name:'小米10青春版',
            num:'1002338243',
            weight:'0.55kg',
            address:'中国大陆',
        };
         goods.name='小米10 PLUS';
        goods.color='pink';
  
      document.write(`
        <div class="box">
            <p>品牌:${goods.name}</p>
             <div class="box2">
               <span>商品编号:${goods.num}</span>
               <span>商品重量${goods.weight}</span>
               <span>商品名称:${goods.name}</span>
               <span>商品产地:${goods.address}</span>
               <span>商品颜色:${goods.color}</span>
               </div>
      `)


        </script>
</body>
</html>